package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.StrategyCommend;
import cn.wolfcode.luowowo.article.query.StrategyCommendQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IStrategyCommendService {
    /**
     * 查询StrategyCommend的分页对象
     * @param qo
     * @return
     */
    PageInfo query(StrategyCommendQuery qo);

    /**
     * 保存或者新增strategyCommend对象
     * @param strategyCommend
     */
    void saveOrUpdate(StrategyCommend strategyCommend);

    /**
     * 根据id删除攻略目录
     * @param id
     */
    void delete(Long id);

    /**
     * 查看前5个推荐的攻略
     * @param id
     * @return
     */
    List<StrategyCommend> queryForCommendTop5(Long id);
}
